/*
 * @Author: xiaosihan 
 * @Date: 2023-03-28 19:09:16 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2023-03-28 19:28:46
 */
import { useEffect, useRef, useState } from "react";
import styles from "./cannonDemo.module.less";
import cannonRenderer from "./cannonRenderer";

interface Iprops {

}

// cannon demo
export default function CannonDemo() {

    const dom = useRef<HTMLDivElement | null>(null);
    const [data, setData] = useState({});

    useEffect(() => {

    }, []);

    return (
        <div className={styles.cannonDemo}>
        <div ref={dom => cannonRenderer.setContainer(dom)} className={styles.container}></div>
    </div>
    );

}